import { IButtonBarButton } from '@ve-core/button-bar';
import { IToolBarButton } from '@ve-core/toolbar';

export const left_default_toolbar: IToolBarButton[] = [
    {
        id: 'tree-of-favorites',
        icon: 'fa-star',
        selected: false,
        active: false,
        permission: true,
        tooltip: 'Favorite Documents',
        spinner: false,
        category: 'portal',
        enabledFor: ['**.portal.**'],
    },
    {
        id: 'tree-of-documents',
        icon: 'fa-folder-tree',
        selected: true,
        active: true,
        permission: true,
        tooltip: 'Project Document Tree',
        spinner: false,
        enabledFor: ['**.portal.**'],
    },
    {
        id: 'tree-of-contents',
        icon: 'fa-folder-tree',
        selected: true,
        active: false,
        permission: true,
        tooltip: 'View Tree',
        spinner: false,
        enabledFor: ['**.present.**'],
    },
    {
        id: 'tree-of-tables',
        icon: 'fa-table',
        selected: false,
        active: false,
        permission: true,
        tooltip: 'List of Tables',
        spinner: false,
        enabledFor: ['**.present.**'],
    },
    {
        id: 'tree-of-figures',
        icon: 'fa-image',
        selected: false,
        active: false,
        permission: true,
        tooltip: 'List of Figures',
        spinner: false,
        enabledFor: ['**.present.**'],
    },
    {
        id: 'tree-of-equations',
        icon: 'fa-superscript',
        selected: false,
        active: false,
        permission: true,
        tooltip: 'List of Equations',
        spinner: false,
        enabledFor: ['**.present.**'],
    },
];

export const left_dynamic_toolbar: IToolBarButton[] = [];

export const left_default_buttons: IButtonBarButton[] = [
    {
        id: 'tree-expand',
        icon: 'fa-regular fa-caret-square-down',
        selectable: true,
        tooltip: 'Expand All',
        placement: 'bottom-left',
    },
    {
        id: 'tree-collapse',
        icon: 'fa-regular fa-caret-square-up',
        selectable: true,
        tooltip: 'Collapse All',
    },
    {
        id: 'tree-filter',
        icon: 'fa-solid fa-filter',
        selectable: true,
        tooltip: 'Filter',
    },
    {
        id: 'tree-add',
        icon: 'fa-solid fa-plus',
        selectable: true,
        tooltip: 'Add',
        placement: 'bottom-right',
        dropdown: {
            icon: '',
            toggle_icon: '',
            ids: ['tree-add.group', 'tree-add.document', 'tree-add.view', 'tree-add.tag'],
        },
    },
    {
        id: 'tree-add.view',
        icon: 'fa-solid fa-plus',
        selectable: false,
        tooltip: 'Add View',
        enabledFor: ['**.present.**'],
    },
    {
        id: 'tree-add.group',
        icon: 'fa-solid fa-folder',
        selectable: false,
        tooltip: 'Add Group',
        enabledFor: ['**.portal.**'],
    },
    {
        id: 'tree-clear-select',
        icon: 'fa-regular fa-folder',
        selectable: false,
        tooltip: 'Clear Selection',
        enabledFor: ['**.portal.**'],
    },
    {
        id: 'tree-add.document',
        icon: 'fa-solid fa-file',
        selectable: false,
        tooltip: 'Add Document',
        enabledFor: ['**.portal.**'],
    },
    {
        id: 'tree-refresh',
        icon: 'fa-solid fa-refresh',
        selectable: false,
        tooltip: 'Refresh Tree Data',
    },
    {
        id: 'tree-add.tag',
        icon: 'fa-solid fa-tag',
        selectable: false,
        tooltip: 'Add Tag',
        enabledFor: ['**.refs.**'],
    },
    {
        id: 'tree-add.branch',
        icon: 'fa-solid fa-plus',
        selectable: false,
        tooltip: 'Add Branch',
        enabledFor: ['**.refs.**'],
    },
    {
        id: 'tree-delete',
        icon: 'fa-solid fa-trash',
        selectable: false,
        tooltip: 'Remove',
    },
    {
        id: 'tree-reorder-view',
        icon: 'fa-solid fa-arrows-v',
        selectable: false,
        tooltip: 'Reorder Views',
        enabledFor: ['**.present.**'],
    },
    {
        id: 'tree-reorder-group',
        icon: 'fa-solid fa-arrows-v',
        selectable: false,
        tooltip: 'Organize Groups/Docs',
        enabledFor: ['**.portal.**'],
    },
    {
        id: 'tree-full-document',
        icon: 'fa-regular fa-file-text',
        selectable: false,
        tooltip: 'Full Document',
        toggle: {
            tooltip: 'View Mode',
        },
        enabledFor: ['**.present.**'],
    },
    {
        id: 'tree-show-pe',
        icon: 'fa-regular fa-image',
        selectable: false,
        tooltip: 'Show PE',
        toggle: {
            tooltip: 'Hide PE',
        },
        enabledFor: ['**.present.**'],
    },
];
